﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ignitron.EEngine.Maths;

namespace Ignitron.EEngine.Lighting
{
    /// <summary>
    /// Structure representing a light
    /// </summary>
    public class ELight
    {
        public ELight(int lightIndex)
        {
            LightIndex = lightIndex;
            ConstantAttenuation = 1f;
            LinearAttenuation = QuadraticAttenuation = 0f;
        }

        public int LightIndex
        { get; private set; }

        public bool IsTurnedOn
        { get; set; }

        public EVector4 Position
        { get; set; }
        
        public EVector4 Ambient
        { get; set; }
        
        public EVector4 Diffuse
        { get; set; }
        
        public EVector4 Specular
        { get; set; }

        public float ConstantAttenuation
        { get; set; }

        public float LinearAttenuation
        { get; set; }

        public float QuadraticAttenuation
        { get; set; }
    }
}
